/*
 * PaserEvent.hpp
 *
 *  Created on: 2010-5-6
 *      Author: anod
 */

#ifndef PARSEEVENT_HPP_
#define PARSEEVENT_HPP_

#include <Event.hpp>
#include <Common/CustomEvent.hpp>
#include "HtmlDataHandler.hpp"

namespace AppData
{

class ParseEvent:public Event
{
public:
	ParseEvent(long _id, const char *buffer=NULL, int bufflen=0);
public:
	const char* getPaintXML() const;
	size_t      getBufferLen() const;

public:
	static const int   DATA_READY = CUSTOM_EVENT_START+PARSE_EVENT_BASE+0;
	static const int   DATA_DAMAGED = CUSTOM_EVENT_START+PARSE_EVENT_BASE+1;
private:
	const char* _p_buffer;
	size_t      _buffer_len;

	friend class HtmlDataHandler;
};

}
#endif /* PARSEEVENT_HPP_ */
